Ivparameterspec ivspec ivparameterspec jobber

Filter

Mine tidligere søk
Filtrer etter:
Budsjett
til
til
til
Skriv
Ferdigheter
Språk
    Jobbstatus
    10 ivparameterspec ivspec ivparameterspec jobber funnet, priser i USD

    public static String encrypt (String key, String str) throws NoSuchAlgorithmException, GeneralSecurityException, UnsupportedEncodingException { ...getBytes("UTF-8"); int len = ; if (len > ) { len = ; } (b, 0, keyBytes, 0, len); SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES"); Cipher c = ("AES/CBC/PKCS5Padding"); (Cipher.ENCRYPT_MODE, keySpec, new IvParameterSpec(())); byte[] encrypted = (("UTF-8")); String enStr = new String(().encode(encrypted)); return enStr; } Convert this to python.

    $22 (Avg Bid)
    $22 Snitt bud
    17 bud

    public static String encrypt (String key, String str) throws NoSuchAlgorithmException, GeneralSecurityException, UnsupportedEncodingException { ...getBytes("UTF-8"); int len = ; if (len > ) { len = ; } (b, 0, keyBytes, 0, len); SecretKeySpec keySpec = new SecretKeySpec(keyBytes, "AES"); Cipher c = ("AES/CBC/PKCS5Padding"); (Cipher.ENCRYPT_MODE, keySpec, new IvParameterSpec(())); byte[] encrypted = (("UTF-8")); String enStr = new String(().encode(encrypted)); return enStr; } Convert this to python.

    $31 (Avg Bid)
    $31 Snitt bud
    10 bud

    ... for (;;) { localObject = paramString1; if (i >= j - k) { break; } paramString1 = paramString1 + "0"; i += 1; } } Object localObject = paramString1; if (() > CIPHER_KEY_LEN) { localObject = (0, CIPHER_KEY_LEN); } paramString1 = new IvParameterSpec(("UTF-8")); localObject = new SecretKeySpec(((String)localObject).getBytes("UTF-8"), "AES"); Cipher localCipher = (CIPHER_NAME); (1, (Key)localObject, paramString1); paramString1 = ((()), 0); paramString2 = (("UTF-8")

    $27 (Avg Bid)
    $27 Snitt bud
    2 bud

    ...SerpentEngine RC4Engine Salsa20Engine ChaChaEngine Create new classes that include initialisation with ParametersAndIV (where appropriate), as well as initialisation given with byte[] for Parameters/IV. Any block encryption Encryption MUST use CBC block chaining, eg: Cipher cipher = ("AES/CBC/PKCS5Padding", bouncyProvider); (Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); return (inputData); Interface to base your classes on: public abstract class EncryptionSystem { public abstract byte[] encrypt(byte[] inputData); public abstract byte[] encrypt(InputStream inputData); public abstract byte[] decrypt(byte[] inputData); public abstract byte[] decrypt(InputStream inputData); public abstract String algorithm(); //algorithm should give the encryption

    $20 (Avg Bid)
    $20 Snitt bud
    1 bud

    ...Salsa20Engine ChaChaEngine Create new classes that include initialisation with ParametersAndIV (where appropriate), as well as initialisation given with byte[] for Parameters/IV. Any block encryption Encryption MUST use CBC block chaining, eg: Cipher cipher = ("AES/CBC/PKCS5Padding", bouncyProvider); (Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); return (inputData); Interface to base your classes on: public abstract class EncryptionSystem { public abstract byte[] encrypt(byte[] inputData); public abstract byte[] encrypt(InputStream inputData); public abstract byte[] decrypt(byte[] inputData); public abstract byte[] decrypt(InputStream inputData); public abstract String algorithm(); //algorithm

    $95 (Avg Bid)
    $95 Snitt bud
    2 bud

    ...Salsa20Engine ChaChaEngine Create new classes that include initialisation with ParametersAndIV (where appropriate), as well as initialisation given with byte[] for Parameters/IV. Any block encryption Encryption MUST use CBC block chaining, eg: Cipher cipher = ("AES/CBC/PKCS5Padding", bouncyProvider); (Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); return (inputData); Interface to base your classes on: public abstract class EncryptionSystem { public abstract byte[] encrypt(byte[] inputData); public abstract byte[] encrypt(InputStream inputData); public abstract byte[] decrypt(byte[] inputData); public abstract byte[] decrypt(InputStream inputData); public abstract String algorithm(); //algorithm

    $10 - $30
    $10 - $30
    0 bud

    Programing language: Java, JNI, C, C++, Android NDK Needed knowledge of Android development and NDK in Android Development. The job is to implement in NDK C or C...substring(25, () - 25); return decrypt((k, Base64.NO_WRAP), (i, Base64.NO_WRAP), (c, Base64.NO_WRAP)); } public static byte[] decrypt(byte[] key, byte[] iv, byte[] encrypted) throws Exception { SecretKeySpec k = new SecretKeySpec(key, "AES"); Cipher cipher = ("AES/CBC/PKCS5Padding"); IvParameterSpec i = new IvParameterSpec(iv); (Cipher.DECRYPT_MODE, k, i); return (encrypted); } Job task: To write two static methods C code that works from Android NDK that has the same api as previously given Java code.

    $359 (Avg Bid)
    $359 Snitt bud
    7 bud

    ...- SJCL code ("password", "data") in JSP / wrap key data in Key/IV specs to pass to cipher SecretKeySpec key = new SecretKeySpec(keyBytes, "DES"); IvParameterSpec ivSpec = new IvParameterSpec(ivBytes); Cipher cipher = ("DES/CBC/PKCS5Padding"); Encryption would go like this (Cipher.ENCRYPT_MODE, key, ivSpec); byte[] encrypted= new byte[()]; int enc_len = (input, 0, , encrypted, 0); enc_len += (encypted, enc_len); ... and decryption like this (Cipher.DECRYPT_MODE, key, ivSpec); byte[] decrypted = new byte[(enc_len)]; int dec_len = (encrypted, 0, enc_len, decrypted, 0); dec_len += (decrypted, dec_len);

    $148 (Avg Bid)
    $148 Snitt bud
    18 bud

    ...Deliverables Task 1. You have to crypt clear text message using JCE, then decrypt encrypted message and check if the encrypted text are identical clear text you have encoded. In this task you must use: • Use JCE to get “Blowfish/CBC/PKCS5Padding?? or depending on your Java version “Blowfish/CBC/PKCS#5?? Cipher-object. • Create a key using SecretKeySpec, insert initialize vector with IvParameterSpec • Convert text to byte-array that can be crypt, decrypt and converted back to original text message. You must document each and every step of this task. Documentation are extremely important. Task 2 After getting basic understanding on how JCE uses in task 1, you will have to implement CBC-modus and PKCS#5-padding without use of JCE. I...

    $127 (Avg Bid)
    $127 Snitt bud
    2 bud

    ...from hex, then decrypt, then trim Cipher cipher = ("AES/CBC/NoPadding"); SecretKeySpec keySpec = new SecretKeySpec("thistest12qwqwqw".getBytes(), "AES"); IvParameterSpec ivSpec = new IvParameterSpec("doesthis12qwqwqw".getBytes()); (Cipher.ENCRYPT_MODE, keySpec, ivSpec); //note that we encrypt the lower case version of the string! byte[] encText = ((PadString(args[0].toLowerCase())).getBytes()); String encryptedString = toHexString(encText); ("encryptedString: " + encryptedString); (Cipher.DECRYPT_MODE, keySpec, ivSpec); byte[] decText = (fromHexString(encryptedString)); ("decrypted string = " + (new String(decText).trim())) } catch(Exception e) {

    $134 (Avg Bid)
    $134 Snitt bud
    4 bud