added the PGP encryption java class

This commit is contained in:
Ayoub BENALI 2012-11-27 17:07:28 +01:00
parent d52cd73adc
commit a0c2ab28da
3 changed files with 19 additions and 49 deletions

Binary file not shown.

View File

@ -28,8 +28,7 @@
<name>Scala-Tools Dependencies Repository for Releases</name>
<url>http://scala-tools.org/repo-releases</url>
</repository>
<repository>
<repository>
<id>scala-tools.snapshots</id>
<name>Scala-Tools Dependencies Repository for Snapshots</name>
<url>http://scala-tools.org/repo-snapshots</url>
@ -117,52 +116,23 @@
<version>${scala.version}</version>
<scope>test</scope>
</dependency>
<!--
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>8.4-701.jdbc4</version>
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mongodb_2.9.1</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mongodb-record_2.9.1</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>casbah_${scala.version}</artifactId>
<version>2.3.0</version>
<scope>compile</scope>
<type>pom</type>
</dependency>
-->
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mongodb_2.9.1</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>net.liftweb</groupId>
<artifactId>lift-mongodb-record_2.9.1</artifactId>
<version>2.4</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>casbah_${scala.version}</artifactId>
<version>2.3.0</version>
<scope>compile</scope>
<type>pom</type>
</dependency>
<!-- <dependency>
<groupId>pgpencryption</groupId>
<artifactId>1</artifactId>
<version>1.46</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/pgp.jar</systemPath>
</dependency> -->
</dependencies>
<build>
@ -172,7 +142,7 @@
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.14.3</version>
<version>2.9</version>
<configuration>
<charset>${project.build.sourceEncoding}</charset>
<jvmArgs>
@ -225,7 +195,6 @@
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>
<plugin>
<groupId>net.sf.alchim</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>

View File

@ -24,6 +24,7 @@ class AccountRegistration {
if( !accountNumber.isEmpty & !accountPIN.isEmpty & bankId!="0")
{
println("--> all the parameters are corrects")
// PgpEncryption.encryptToFile()
//encryte the file
}
else