Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

JCOBase64.java

00001 package edu.virtualschool.jco;
00002 
00003 import org.bouncycastle.util.encoders.Base64;
00004 
00012 public class JCOBase64
00013 {
00019   public static byte[] decode(String input)
00020   {
00021     return Base64.decode(input.getBytes());
00022   }
00028   public static String encode(byte[] input)
00029   {
00030     return new String(Base64.encode(input));
00031   }
00032 }