- Timestamp:
- 03/19/19 10:46:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/auth/sharing/Actions.java
r1260 r1261 40 40 return AuthJoinSecret(key); 41 41 } 42 42 43 public static void Encrypt(Text labelWithKey) { 44 AuthEncrypt(labelWithKey); 45 } 46 47 public static void Decrypt(Text labelWithKey) { 48 AuthDecrypt(labelWithKey); 49 } 50 43 51 public static Text AuthGenerateSecret(String label) { 44 52 // Generate AES Key … … 132 140 133 141 // Perform decryption 134 Frame to Encrypt = FrameIO.LoadFrame(labelWithKey.getLink());135 Collection<Text> textItems = to Encrypt.getTextItems();142 Frame toDecrypt = FrameIO.LoadFrame(labelWithKey.getLink()); 143 Collection<Text> textItems = toDecrypt.getTextItems(); 136 144 for (Text t: textItems) { 137 145 byte[] decrypted = DecryptSymmetric(Base64.getDecoder().decode(t.getText().getBytes()), key); 138 146 t.setText(new String(decrypted)); 139 147 } 148 149 // Save changes 150 FrameIO.SaveFrame(toDecrypt); 140 151 } 141 152
Note:
See TracChangeset
for help on using the changeset viewer.