encryption

How can I encypt a string in PHP, and decrypt it in Java?

I am looking for a very basic encryption that is built into both languages where I can encrypt a string in pHP, and be able to get the data back out in Java. So it cannot be things like MD5. ...

Encryption and decryption using property files

hi this is vijay am new to encrypting property file in java my requirement is i have one property file that consist of username and password like this username = abcdefg password = forterr i need to encrypt this =abcdefg and =forterr and decrypt it , can anybody send me code to do this alternate email id [email protected] ...

Response of Access VBA when handing wrong password for import of encrypted password

I am using this code for importing encrypted excel into access 2007: xlApp.Workbooks.Open FileName:=dlgOpen.SelectedItems(i), PASSWORD:=strPasswd It works nicely if I give the correct password, or nothing (I'll prompt user to enter the password again for they give a blank password), but not for wrong password, Access will prompt for e...

Saving encrypted SVN password in IntelliJ Idea on Linux

I use IntelliJ Idea (Ultimate 9.0.3) on Linux at work, and our VCS is Subversion. Idea proposes to store my SVN password but then tells me it is unable to store the password encrypted, and asks if I want to store it in plain text. Well, no. This is on an Ubuntu 10.04 install with Gnome Keyring available. Any hints how I could convinc...

How to encrypt/decrypt file contents using Qt?

Hi All, This question has been asked many times before by others, but somehow the answers made me more confused. In my Qt application (for symbian devices), I have a file with user details (Email ids n passwords) which I store in target device, so want to encrypt this data in the file to keep it secure. I don't need a super secure encr...

A good way to encrypt database fields? - Django

Hi folks, I've been asked to encrypt various db fields within the db. Problem is that these fields need be decrypted after being read. I'm using Django and SQL Server 2005. Any good ideas? ...

Encryption of sqlite db in java

Hello, I am using SQLite JDBC driver from xerial project. What do we mean when we say encrypting the sqlite db ? I would like to know the best way to encrypt either the data in the db or the whole sqlite DB. For that, do I need to encrypt each field value and then write it in to DB or should I simply encrypt the .db file using Java ? Wh...

SHA2 password storage with Java

I'm attempting to make a XML-RPC call that requires HmacSHA-256 hashing of a particular string. I'm currently using the Jasypt library with the following code: StandardPBEStringEncryptor sha256 = new StandardPBEStringEncryptor(); sha256.setPassword(key); sha256.setAlgorithm("PBEWithHmacSHA2"); On trying to use sha...

PHP 2 way security idea

Hi, I had an idea for password security. When a website was generated it would create 2 shuffled copies of all keyboard characters, a random length salt. Further more it would create a random offset number for salt. Example. $password = "Password"; $offset = 3; $salt = "f00"; $saltedPw = "Pasf00sword"; $setOne = 'ftwgDtrE354.....'...

Doctrine - encryption with dql listeners

I am attempting to encrypt certain database fields by adding a call to mysql AES_ENCRYPT (and AES_DECRYPT) using Doctrine DQL Hooks. for SQL SELECT's I have a preDqlSelect() in my Doctrine_Record_Listener class, which goes through each parameter in the select fields, and adds a AES_DECRYPT() for encrypted fields. But, it looks like ca...

Custom field's to_python not working? - Django

Hi folks, I'm trying to implement an encrypted char field. I'm using pydes for encryption This is what I have: from pyDes import triple_des, PAD_PKCS5 from binascii import unhexlify as unhex from binascii import hexlify as dohex class BaseEncryptedField(models.CharField): def __init__(self, *args, **kwargs): self.td =...

Networks & relative security

Hi, I was wondering which of these networks would you feel most comfortable logging into e.g. your bank account and why 3g mobile phone connection University campus LAN university campus wifi, wpa University campus wifi no encryption. Proxy login does the choice matter if the site uses ssl? Won't that encrypt the login info anyway? ...

Which is best encryption method base 64 or MD5?

I am currently using MD5 encryption for storing the password in database.Before we dont have the function for forgot password.But now we are implementing the forgot password.So I cant decrypt MD5 and send password to user.But I can do if it is encrypted in base64.Now I am little bit confused which is best encrption method. I already did ...

Need help in AES encrption on iphone

Hi, This is karthik, I would like to implement aes encryption method on my iphone application . Already I have done it with some problem . I had encrypted the string successfully and I can send it to java server to decrypt it. But they cannot decrypt it to original string . As the same , They encrypt some data and have send it to me. M...

Implementing the fair-coin flip

I was getting bored so I started looking a little into Cryptography. I got interested in this Fair-Coin Flipping protocol. This protocol works with public key cryptography but requires that the algorithm commute (something like RSA I guess). I thought it would be fun to write this in either C or C++ and was wondering how people generally...

PKCS12 Certificates

I want to create pkcs12 private and public key files in c# .net I want to do this really without having to use makecert.exe or any external programs. Does anyone know any .net library’s to do this with or any resource so i could create the files myself? Thanks ...

.net Cryptography - is there a way to tell that something has been decrypted wrong?

See the title for question. In a nut shell, what I am trying to do is encrypt some data with the seed (keyword) provided by the user. Is there a way to know that the data has been decrypted wrong, or in other words that the seed is wrong? Using .net 2.0, C# Thanks! ...

Encrypt In .NET / Decrypt in SQL Server

Is there a way to decrypt a column when querying data from a SQL Server (2005/2008) database that has been encrypted using DES via .NET? If so, how? I have the key, but don't know how to use it within the context of a sql server query. ...

Database encryption or application level encryption?

When you need to store sensitive data such as CCs or SSNs, do you: 1) Build your own encryption routine within the application, define a secret key somewhere in a config file, and then manually encrypt/decrypt data going to the database. 2) Push all the problem to the database, using the built in DB capabilities (I think most vendors c...

Encrypt with PHP and Decrypt with Java

I have to write a program to decrypt a message using JAVA. The message is encrypted using Triple DES / ECB implemented in PHP. I have tried a few different settings on the algorithm, mode, and padding schema. I do not get the correct result. What is missing? Here is the PHP program that encrypt the message: $config_mcrypt_ecb_key = "1...