Click here to Skip to main content
15,879,326 members
Articles / Mobile Apps / Blackberry

Password Safe Reader for Windows Mobile

, , ,
Rate me:
Please Sign up or sign in to vote.
4.20/5 (5 votes)
20 Mar 2010GPL33 min read 64K   961   32  
A Windows Mobile C# reader for the popular Password Safe archive files.
#region License
/*
 *  PasswordSafe Database Reader/Writer
 *
 *  Copyright (C) 2007 Svante Seleborg
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 * 
 *  If you'd like to license this program under any other terms than the
 *  above, please contact the author and copyright holder.
 *
 *  Contact: mailto:svante@axantum.com
 */
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace Axantum.PasswordSafe
{
    /// <summary>
    /// Represents a password along with critical time information.
    /// </summary>
    public class PasswordSafePassword
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PasswordSafePassword"/> class.
        /// </summary>
        /// <param name="password">The password.</param>
        /// <param name="modifiedUtc">The modified UTC.</param>
        /// <param name="expiresUtc">The expires UTC.</param>
        public PasswordSafePassword(string password, DateTime modifiedUtc, DateTime expiresUtc)
        {
            Password = password;
            ModifiedUtc = modifiedUtc;
            ExpiresUtc = expiresUtc;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PasswordSafePassword"/> class.
        /// </summary>
        /// <param name="password">The password.</param>
        /// <param name="modifiedUtc">The modified UTC.</param>
        public PasswordSafePassword(string password, DateTime modifiedUtc)
            : this(password, modifiedUtc, DateTime.MaxValue)
        {
        }

        private string _password;

        /// <summary>
        /// Gets or sets the actual password.
        /// </summary>
        /// <value>The password.</value>
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }

        private DateTime _modifiedUtc;

        /// <summary>
        /// Gets or sets the time the password was modified UTC.
        /// </summary>
        /// <value>The modified UTC.</value>
        public DateTime ModifiedUtc
        {
            get { return _modifiedUtc; }
            set { _modifiedUtc = value; }
        }

        private DateTime _expiresUtc;

        /// <summary>
        /// Gets or sets the time the password expires UTC.
        /// </summary>
        /// <value>The expires UTC.</value>
        public DateTime ExpiresUtc
        {
            get { return _expiresUtc; }
            set { _expiresUtc = value; }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Retired Van der Heijden Holding BV
Netherlands Netherlands
I'm Alphons van der Heijden, living in Lelystad, Netherlands, Europa, Earth. And currently I'm retiring from hard working ( ;- ), owning my own company. Because I'm full of energy, and a little to young to relax ...., I don't sit down, but create and recreate software solutions, that I like. Reinventing the wheel is my second nature. My interest is in the area of Internet technologies, .NET etc. I was there in 1992 when Mosaic came out, and from that point, my life changed dramatically, and so did the world, in fact. (Y)

Written By
Web Developer Axantum Software AB
Sweden Sweden
I've been working with all aspects of software development since 1979 - from compiler construction to management. Currently I'm an independent consultant mostly specializing in computer security. Please see my homepage for contact details.

I speak C like a native, and have a pretty good grasp of C++. The most recent five years C# has been the main development language. Traditionally Unix has been the dominating environment, but currently the scales have tipped over to Windows, due to market demands but I'm equally at home developing in both environments.

When I'm not coding I'm usually sitting on one of my 4 bikes, indoors or outdoors, on the road or in the woods.

Written By
Software Developer
United Kingdom United Kingdom
I am currently employed as a C# / MS SQL developer for a Medical Software company working on a large enterprise system.

I have used Delphi and MSM MUMPS in previous roles and love both languages.

I'm an avid Windows Mobile fan and moderator on http://xda-developers.com. I code in C#, and C++ for WM as well as cooking custom ROMs and learning to disasm the inners of my device.

Written By
Engineer
Romania Romania
I have some intensive experience with C#, ASP.NET and Delphi. Also I like to write API's, which I realized when I made a SmartCard library.

Comments and Discussions