Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.slock.slockapp;
- import junit.framework.TestCase;
- import java.security.Security;
- import javax.crypto.Cipher;
- public class CryptographyTest extends TestCase {
- public void setUp() throws Exception {
- super.setUp();
- }
- public void testEncrypt() throws Exception {
- Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
- Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding", "BC");
- assert(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement