Skip to content
Extraits de code Groupes Projets
Valider eec66395 rédigé par ilya's avatar ilya
Parcourir les fichiers

Removed key password

parent 91e96973
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -77,7 +77,7 @@ class User < Person
def assign_key
keys = GPGME.list_keys(nil, true)
if keys.empty?
#generate_key
generate_key
end
self.key_fingerprint = GPGME.list_keys(nil, true).first.subkeys.first.fingerprint
end
......@@ -94,7 +94,6 @@ Name-Real: #{self.real_name}
Name-Comment: #{self.url}
Name-Email: #{self.email}
Expire-Date: 0
Passphrase: #{self.password}
</GnupgKeyParms>"
ctx.genkey(paramstring, nil, nil)
......
Aucun aperçu pour ce type de fichier
Aucun aperçu pour ce type de fichier
Aucun aperçu pour ce type de fichier
Aucun aperçu pour ce type de fichier
......@@ -26,6 +26,11 @@ describe 'user encryption' do
it 'should retrieve a user key' do
@u.key.subkeys[0].fpr.should == @u.key_fingerprint
end
describe 'key exchange on friending' do
end
describe 'signing and verifying' do
it 'should sign a message on create' do
......@@ -41,7 +46,6 @@ describe 'user encryption' do
it 'should know if the signature is from the wrong person' do
pending
my_message = Factory.create(
end
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter