grmpf, forgot to commit the actual changes...

This commit is contained in:
git@daemon.de
2013-09-12 23:32:42 +02:00
parent 10d38a0000
commit b8df33061b
7 changed files with 158 additions and 220 deletions

View File

@@ -40,16 +40,3 @@ Ember.Handlebars.registerBoundHelper('date', function(date) {
return moment(date).format('LL');
});
Ember.Handlebars.registerBoundHelper('encrypt', function(cleartext) {
pass = App.Self.find(0).get('password');
if(pass) {
var enpass = CryptoJS.SHA512(pass).toString(CryptoJS.enc.Base64);
//console.log("pass: %s, enpass: %s", pass, enpass);
var cr = CryptoJS.AES.encrypt(escape(cleartext), enpass);
return cr;
}
else {
return "Failed to encrypt, not password set";
}
});