Sample Resume : Sign Up Sign

934 WordsMar 20, 20154 Pages
Skip to content Sign up Sign in This repository Explore Features Enterprise Blog Watch 1 Star 0 Fork 0 poltak/DataEncryptionStandard branch: master DataEncryptionStandard/src/jpsam3hklam9/des/DES.java @poltakpoltak on Jun 12, 2013 Package name change. 1 contributor RawBlameHistory 202 lines (176 sloc) 6.228 kb package jpsam3hklam9.des; /** * Data Encryption Standard (DES) Java Implementation * with Cipher Block Chaining mode * * 2013-04-02 * * Jonathan Poltak Samosir <jpsam3@student.monash.edu> 2271 3603 * Goodwin Lam <hklam9@student.monash.edu> 2317 6105 * * All supplementary data gotten from Wikipedia: * http://en.wikipedia.org/wiki/DES_supplementary_material */ public class DES…show more content…
*/ public long[] CBCEncrypt(long plainTexts[], long key, long IV) { return CBCMode(plainTexts, key, IV, true); } /** * Wrapper for CBCMode(), specifying encryption. */ public long[] CBCDecrypt(long cipherTexts[], long key, long IV) { return CBCMode(cipherTexts, key, IV, false); } /** * Wrapper for cipher(), specifying encryption. */ public long encrypt(long block, long key) { return cipher(block, key, true); } /** * Wrapper for cipher(), specifying decryption. */ public long decrypt(long block, long key) { return cipher(block, key, false); } /** * Implements the DES cipher on 64 bit blocks in @param input using @param key in CBC mode. * CBC mode encryption or decryption can be specified with @param encrypt. * * @return An array of 64
Open Document