Header Image

Picture

We’ve got many requests in the past year for a cryptography API, initially we thought about adding something like this to the core but it seems somewhat niche so we decided to wrap up this great open source project and re-package it as a CodenameOne lib.The project is supported on all CodenameOne platforms right out of the box without any changes.

You can download the full source code as well as a compiled binary from a Google code project here:

https://code.google.com/p/bouncy-castle-codenameone-lib/

and you can download the compiled binary from here:
BouncyCastleCN1Lib.cn1lib
(since Google removed the download section for new projects).

You can learn more about bouncy castle and how to use it through the

many resources on available here:

http://www.bouncycastle.org/

Happy coding!


Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended…. If that is the case please let us know via the comments section below.

Archived Comments

This post was automatically migrated from the legacy Codename One blog. The original comments are preserved below for historical context. New discussion happens in the Discussion section.

Anonymous says:

this is a very valuable addition !

Anonymous says:

can you please tell me, how i can get sha1 or md5 hashing of a string using this lib?

Anonymous says:

Did you try this:

https://www.google.com/sear…

Anonymous says:

I tried to search for AES string encription, but all examples forces me to use java.security.* (and I already have a working class for android written purely with java.security/javax.crypto)), I need one for Your platform to cover the iPhone), which in return results with an error during compiling (error: package java.security does not exist). BouncyCastle is installed. Any example written PURELY with BouncyCastle?

Anonymous says:

Did you try searching our discussion forum for aes?

https://groups.google.com/f…

Anonymous says:

Actually, I did not. Thanks.

Kaya TC says:

Im having difficulties to Hash a passwordfield, i searched google for a while now, but the examples are not for cn1.
I could not find some classes which are in the examples so im stuck now.

I just want to have a SHA hash =)

Shai Almog says:

I think this contains some examples which might be helpful:
http://www.programcreek.com…


Discussion

Join the conversation via GitHub Discussions.