title: How to add Bouncy Castle algorithm to Android?
body: <p>I am trying to write a small application using bouncycastle algorithm, from the <a href="http://www.google.com/codesearch/p?hl=en#atE6BTe41-M/libcore/security/src/main/java/org/bouncycastle/jce/provider/BouncyCastleProvider.java&amp;q=package:android%20blowfish%20lang:java&amp;d=9&amp;t=0&amp;l=205" rel="noreferrer">BouncyCastleProvider.java</a> it says we have to import and add the provider during runtime by the following code</p>
  
  <p><code>import org.bouncycastle.jce.provider.BouncyCastleProvider;</code>
  <code>Security.addProvider(new BouncyCastleProvider());</code></p>
  
  <p>error - The import org.bouncycastle cannot be resolved; during import
  error - BouncyCastleProvider cannot be resolved to a type; when calling addProvider</p>
  
  <p>I though bouncycastle is not provided with the Android 1.6 SDK, so thought of installing separately. how should i do this?
  If Bouncycastle is shipped along with SDK, what should i do to avoid these errors?
  I am using Android 1.6, eclipse-V3.4.0 on winXP .
  Thanks in advance</p>