Use a properties file and don't include that in your source code
commits. Here's another thread on it:
http://groups.google.com/group/liftweb/browse_thread/thread/c156b9de99f3bce/

On Dec 17, 8:22 am, itsjar <[email protected]> wrote:
> Hi, I've added the following code to change the database to mysql.
> However our code is open source and is freely browsable so It would be
> nice to hash the password somehow.
>
> Does anybody have an idea how to do this in LIFT?
>
> Thanks,
> itsjar
>
> object DBArxum extends ConnectionManager {
>   def newConnection(name : ConnectionIdentifier): Box[Connection] = {
>     try {
>       Class.forName("com.mysql.jdbc.Driver")
>       val dm = DriverManager.getConnection("jdbc:mysql://localhost/
> arxum?user=root&password=blablablabla")
>         Full(dm)
>     } catch {
>       case e : Exception => e.printStackTrace; Empty
>     }
>   }
>   def releaseConnection(conn: Connection) {conn.close}
>
>
>
> }

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to