[Glass] Encryption in GemStone

Dale K. Henrichs dale.henrichs at gemtalksystems.com
Wed Nov 20 06:50:53 PST 2013


Mariano, 

If you register on GemSource I'll add you to GLASS_DEVS which gives you write access to a bunch of projects ... Alternatively we can create repos up on glassdb/github ... also do you have a github id? 

Dale 

----- Original Message -----

| From: "Mariano Martinez Peck" <marianopeck at gmail.com>
| To: "Johan Brichau" <johan at yesplan.be>, "Paul DeBruicker"
| <pdebruic at gmail.com>, glass at lists.gemtalksystems.com
| Sent: Wednesday, November 20, 2013 5:27:33 AM
| Subject: Re: [Glass] Encryption in GemStone

| Ok, and after a few more extensions, all tests are green.
| Maybe it is time to start committing to the new compatibility repo...

| Cheers,

| On Wed, Nov 20, 2013 at 10:20 AM, Mariano Martinez Peck <
| marianopeck at gmail.com > wrote:

| | | | I notice there is an implementation of Blowfish in the
| | | | squeak/pharo
| | | | version. Is this the one you are using?
| | | 
| | 
| 

| | | Yes. Maybe (if it is just the Smalltalk part) it is not difficult
| | | to
| | | port. What I am not sure is that sometimes these algorithms
| | | assumes
| | | the size of the world (32 bits or 64 bits)... so that would be a
| | | difference between Pharo and GemStone.
| | 
| 
| | | I will see if I can make it work.
| | 
| 

| | Well, it seems to work for my small test.
| 
| | I needed to add #unsignedLongAt: index bigEndian: aBool to
| | ByteArray
| | to my compatibility layer.
| 
| | Then I modified #decryptString: aString with: aKey and
| | #decryptToString: someData with: aKey
| 
| | to do a
| 

| | ^ decryptedData asByteArray asString.
| 

| | instead of
| 

| | ^String fromByteArray: decryptedData asByteArray .
| 

| | Because GemStone String does not implement #fromByteArray: and to
| | avoid another extension method...
| 

| | Paul, shall I commit this change to the Pharo version since in
| | Pharo
| | #fromByteArray: ends up doing the same?
| 

| | Thanks,
| 

| | | Thanks Johan,
| | 
| 

| | | | Johan
| | | 
| | 
| 

| | | | [1] http://tools.ietf.org/html/draft-ietf-oauth-json-web-token
| | | 
| | 
| 
| | | | [2] http://smalltalkhub.com/#!/~JohanBrichau/Json-WebToken
| | | 
| | 
| 
| | | | [3] http://seaside.gemtalksystems.com/ss/Cryptography.html
| | | 
| | 
| 

| | | | On 20 Nov 2013, at 04:01, Mariano Martinez Peck <
| | | | marianopeck at gmail.com > wrote:
| | | 
| | 
| 

| | | | > Hi guys. I need both types of encryption: one-way and 2-way.
| | | | > In
| | | | > pharo I am using SecureHashAlgorithm for one way and for 2
| | | | > way
| | | | > I
| | | | > use Blowfish (plus some add ons I put).
| | | 
| | 
| 
| | | | >
| | | 
| | 
| 
| | | | > What do you use in GemStone? I didn't fine anything in the
| | | | > programming guide.
| | | 
| | 
| 
| | | | >
| | | 
| | 
| 
| | | | > Thanks!
| | | 
| | 
| 
| | | | >
| | | 
| | 
| 
| | | | > --
| | | 
| | 
| 
| | | | > Mariano
| | | 
| | 
| 
| | | | > http://marianopeck.wordpress.com
| | | 
| | 
| 
| | | | > _______________________________________________
| | | 
| | 
| 
| | | | > Glass mailing list
| | | 
| | 
| 
| | | | > Glass at lists.gemtalksystems.com
| | | 
| | 
| 
| | | | > http://lists.gemtalksystems.com/mailman/listinfo/glass
| | | 
| | 
| 

| | | | _______________________________________________
| | | 
| | 
| 
| | | | Glass mailing list
| | | 
| | 
| 
| | | | Glass at lists.gemtalksystems.com
| | | 
| | 
| 
| | | | http://lists.gemtalksystems.com/mailman/listinfo/glass
| | | 
| | 
| 

| | | --
| | 
| 
| | | Mariano
| | 
| 
| | | http://marianopeck.wordpress.com
| | 
| 

| | --
| 
| | Mariano
| 
| | http://marianopeck.wordpress.com
| 

| --
| Mariano
| http://marianopeck.wordpress.com

| _______________________________________________
| Glass mailing list
| Glass at lists.gemtalksystems.com
| http://lists.gemtalksystems.com/mailman/listinfo/glass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131120/d716cb36/attachment.html>


More information about the Glass mailing list