File indexing completed on 2024-05-12 16:35:44

0001 /*************************************************************************
0002  * This implementation has been taken from the OpenOffice 1.0 and modified
0003  * to use Calligra Sheets data types
0004  *
0005  *  $RCSfile$
0006  *
0007  *  $Revision$
0008  *
0009  *  last change: $Author$ $Date$
0010  *
0011  *  The Contents of this file are made available subject to the terms of
0012  *  either of the following licenses
0013  *
0014  *         - GNU Lesser General Public License Version 2.1
0015  *         - Sun Industry Standards Source License Version 1.1
0016  *
0017  *  Sun Microsystems Inc., October, 2000
0018  *
0019  *  GNU Lesser General Public License Version 2.1
0020  *  =============================================
0021  *  Copyright 2000 by Sun Microsystems, Inc.
0022  *  901 San Antonio Road, Palo Alto, CA 94303, USA
0023  *
0024  *  This library is free software; you can redistribute it and/or
0025  *  modify it under the terms of the GNU Lesser General Public
0026  *  License version 2.1, as published by the Free Software Foundation.
0027  *
0028  *  This library is distributed in the hope that it will be useful,
0029  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0030  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0031  *  Lesser General Public License for more details.
0032  *
0033  *  You should have received a copy of the GNU Lesser General Public
0034  *  License along with this library; if not, write to the Free Software
0035  *  Foundation, Inc., 51 Franklin Street, Fifth Floor,
0036    Boston, MA 02110-1301, USA
0037  *
0038  *  Contributor(s): Matthias Huetsch <matthias.huetsch@sun.com>
0039  *
0040  *
0041  ************************************************************************/
0042 
0043 #ifndef _DIGEST_
0044 #define _DIGEST_
0045 
0046 #include <QByteArray>
0047 #include <QString>
0048 
0049 class SHA1
0050 {
0051 public:
0052     static bool getHash(QString const & text, QByteArray & hash);
0053 };
0054 
0055 #endif
0056