passwords

Secure erasing of password from memory in Ruby

纵然是瞬间 提交于 2020-12-09 05:20:25
问题 I'm writing a Ruby application that will need to handle a user's enterprise password. I'd like to minimize the time the password is in memory to reduce the likelihood of the password being exposed. In a native language, I would directly erase the data. In C#, I would use the SecureString class. In Java, I'd use char[]. But the best that I can find for Ruby is an old feature request that seems dead. What is the standard for securely storing and erasing passwords from memory in Ruby? Is there a

Secure erasing of password from memory in Ruby

最后都变了- 提交于 2020-12-09 05:13:38
问题 I'm writing a Ruby application that will need to handle a user's enterprise password. I'd like to minimize the time the password is in memory to reduce the likelihood of the password being exposed. In a native language, I would directly erase the data. In C#, I would use the SecureString class. In Java, I'd use char[]. But the best that I can find for Ruby is an old feature request that seems dead. What is the standard for securely storing and erasing passwords from memory in Ruby? Is there a

How to make a WPF TextBox use password characters?

孤街浪徒 提交于 2020-12-08 05:22:20
问题 i need to set it it dynamicaliy.. Can i make password Box to as normal text- i mean- user could see the text what he entered.??? its for-> i need to use same control for " password sesion" and also the "item count entering" session ..?? 回答1: You have to use PasswordBox instead of TextBox : <PasswordBox Height="42" Width="200" Margin="22,28,28,0" Name="passwordBox1" VerticalAlignment="Top" Background="LightBlue" Foreground="DarkBlue" MaxLength="25" PasswordChar="*" /> 回答2: There's a new

How to make a WPF TextBox use password characters?

只愿长相守 提交于 2020-12-08 05:19:57
问题 i need to set it it dynamicaliy.. Can i make password Box to as normal text- i mean- user could see the text what he entered.??? its for-> i need to use same control for " password sesion" and also the "item count entering" session ..?? 回答1: You have to use PasswordBox instead of TextBox : <PasswordBox Height="42" Width="200" Margin="22,28,28,0" Name="passwordBox1" VerticalAlignment="Top" Background="LightBlue" Foreground="DarkBlue" MaxLength="25" PasswordChar="*" /> 回答2: There's a new

cryptojs: How to generate AES passphrase

自作多情 提交于 2020-12-01 09:59:27
问题 I want to generate a 256bit password for my AES encryption. When I check the password after the encryption it is different from my initial password. What am I doing wrong? Or is there some security mechanism I am not aware of? My code: password=Generate_key(); var encrypted = CryptoJS.AES.encrypt("Message", password); //Those two should be the same document.write(password+"<br>"); document.write(encrypted.key); function Generate_key() { var key = ""; var hex = "0123456789abcdef"; for (i = 0;